package com.zhu.wx.dict;

import com.zhu.wx.service.*;
import com.zhu.wx.strategy.WxRecStrategy;

/**
 * 枚举策略
 */
public enum WxRecEnum {

    EVENT("event","事件消息", WxRecLocationService.class),
    LINK("link", "链接消息", WxRecLinkService.class),
    LOCATION("location", "地理位置消息", WxRecLocationService.class),
    SHORTVIDEO("shortvideo", "小视频消息", WxRecShortVideoService.class),
    VIDEO("video", "视频消息", WxRecVideoService.class),
    VOICE("voice", "语音消息", WxRecVoiceService.class),
    IMAGE("image", "图片消息", WxRecImageService.class),
    TEXT("text", "文本消息", WxRecTextService.class);


    private String name;
    private String desc;
    private Class<WxRecStrategy> clazz;


    WxRecEnum(String name, String desc, Class clazz) {
        this.name = name;
        this.desc = desc;
        this.clazz = clazz;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public Class<WxRecStrategy> getClazz() {
        return clazz;
    }

    public void setClazz(Class<WxRecStrategy> clazz) {
        this.clazz = clazz;
    }
}
